<?php
return [
    'api_license' => [
        [
            'name' => '官网链接',
            'url' => 'https://www.qqss.net',
        ],
    ],
    'email' => [
        'from' => 'tefaka@163.com',
        'smtp' => 'smtp.163.com',
        'port' => 465,
        'username' => 'tefaka@163.com',
        'password' => 'QSNJMEIESCIRJSFJ',
    ],
    'jwt' => [
        'secret_key' => 'a21sdf1561ff',
        'algorithms' => [
            'HS256',
        ],
    ],
    'system' => [
        'name' => '骑士CMS内容管理系统',
        'version' => 'v0.3.4',
        'author' => '契约',
        'email' => '990504246@qq.com',
    ],
    'theme' => [
        'template' => 'default',
        'available_templates' => [
            'default',
            'theme1',
            'theme2',
        ],
    ],
    'marketplace' => [
        'main_api_url' => 'http://39.101.68.140:39999',
    ],
    'upload' => [
        'mime' => [
            'image' => [
                'mime' => [
                    'image/jpeg',
                    'image/gif',
                    'image/png',
                    'image/svg+xml',
                    'image/x-icon',
                    'image/bmp',
                    'image/webp',
                    'image/tiff',
                ],
                'ext' => [
                    'jpg',
                    'jpeg',
                    'gif',
                    'png',
                    'svg',
                    'ico',
                    'bmp',
                    'webp',
                    'tiff',
                    'tif',
                ],
                'icon' => 'image',
            ],
            'video' => [
                'mime' => [
                    'video/mp4',
                    'video/avi',
                    'video/rmvb',
                    'video/rm',
                    'video/asf',
                    'video/divx',
                    'video/mpg',
                    'video/mpeg',
                    'video/mpe',
                    'video/wmv',
                    'video/mkv',
                    'video/vob',
                    'video/webm',
                    'video/flv',
                    'video/mov',
                    'video/quicktime',
                ],
                'ext' => [
                    'mp4',
                    'avi',
                    'rmvb',
                    'rm',
                    'asf',
                    'divx',
                    'mpg',
                    'mpeg',
                    'mpe',
                    'wmv',
                    'mkv',
                    'vob',
                    'webm',
                    'flv',
                    'mov',
                    'qt',
                ],
                'icon' => 'video',
            ],
            'audio' => [
                'mime' => [
                    'audio/mpeg',
                    'audio/mp3',
                    'audio/mpga',
                    'audio/m4a',
                    'audio/wav',
                    'audio/ogg',
                    'audio/flac',
                    'audio/aac',
                    'audio/m4b',
                    'audio/m4p',
                    'audio/m4u',
                    'audio/m4v',
                    'audio/wma',
                ],
                'ext' => [
                    'mp3',
                    'm4a',
                    'wav',
                    'ogg',
                    'flac',
                    'aac',
                    'wma',
                ],
                'icon' => 'audio',
            ],
            'document' => [
                'mime' => [
                    'application/pdf',
                    'application/msword',
                    'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
                    'text/plain',
                    'application/rtf',
                    'text/markdown',
                    'text/html',
                    'text/css',
                    'text/javascript',
                    'text/csv',
                    'text/xml',
                ],
                'ext' => [
                    'pdf',
                    'doc',
                    'docx',
                    'txt',
                    'rtf',
                    'md',
                    'html',
                    'htm',
                    'css',
                    'js',
                    'csv',
                    'xml',
                ],
                'icon' => 'file-alt',
            ],
            'spreadsheet' => [
                'mime' => [
                    'application/vnd.ms-excel',
                    'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
                    'text/csv',
                    'application/vnd.oasis.opendocument.spreadsheet',
                ],
                'ext' => [
                    'xls',
                    'xlsx',
                    'csv',
                    'ods',
                ],
                'icon' => 'file-excel',
            ],
            'presentation' => [
                'mime' => [
                    'application/vnd.ms-powerpoint',
                    'application/vnd.openxmlformats-officedocument.presentationml.presentation',
                    'application/vnd.oasis.opendocument.presentation',
                ],
                'ext' => [
                    'ppt',
                    'pptx',
                    'odp',
                ],
                'icon' => 'file-powerpoint',
            ],
            'archive' => [
                'mime' => [
                    'application/zip',
                    'application/x-zip-compressed',
                    'application/x-7z-compressed',
                    'application/x-rar-compressed',
                    'application/x-tar',
                    'application/x-gzip',
                    'application/x-bzip2',
                    'application/x-bzip',
                    'application/octet-stream',
                    'application/x-compressed',
                    'application/x-stuffit',
                    'application/x-arj',
                    'application/x-lzh',
                    'application/x-lha',
                    'application/x-ace',
                    'application/x-zoo',
                    'application/x-arc',
                    'application/x-cab',
                    'application/x-cpio',
                    'application/x-lzma',
                    'application/x-xz',
                ],
                'ext' => [
                    'zip',
                    '7z',
                    'rar',
                    'tar',
                    'gz',
                    'bz2',
                    'bz',
                    'tgz',
                    'tbz',
                    'tbz2',
                    'arj',
                    'lzh',
                    'lha',
                    'ace',
                    'zoo',
                    'arc',
                    'cab',
                    'cpio',
                    'lzma',
                    'xz',
                ],
                'icon' => 'file-archive',
            ],
            'code' => [
                'mime' => [
                    'text/plain',
                    'text/html',
                    'text/css',
                    'text/javascript',
                    'application/json',
                    'application/xml',
                    'text/x-php',
                    'text/x-python',
                    'text/x-java',
                    'text/x-c',
                    'text/x-c++',
                ],
                'ext' => [
                    'html',
                    'htm',
                    'css',
                    'js',
                    'json',
                    'xml',
                    'php',
                    'py',
                    'java',
                    'c',
                    'cpp',
                    'h',
                    'hpp',
                    'cs',
                    'go',
                    'rb',
                    'sql',
                ],
                'icon' => 'file-code',
            ],
            'certificate' => [
                'mime' => [
                    'application/x-pem-file',
                    'application/x-x509-ca-cert',
                    'application/pkix-cert',
                    'application/x-pkcs12',
                    'application/octet-stream',
                    'text/plain',
                ],
                'ext' => [
                    'pem',
                    'crt',
                    'cer',
                    'pfx',
                    'p12',
                    'key',
                ],
                'icon' => 'key',
            ],
            'other' => [
                'mime' => [
                    'application/octet-stream',
                ],
                'ext' => [
                ],
                'icon' => 'file',
            ],
            'all' => [
                'mime' => [
                ],
                'ext' => [
                ],
                'icon' => 'file',
            ],
        ],
        'file_icon_map' => [
            'txt' => 'file-alt',
            'doc' => 'file-word',
            'docx' => 'file-word',
            'xls' => 'file-excel',
            'xlsx' => 'file-excel',
            'ppt' => 'file-powerpoint',
            'pptx' => 'file-powerpoint',
            'pdf' => 'file-pdf',
            'jpg' => 'file-image',
            'jpeg' => 'file-image',
            'png' => 'file-image',
            'gif' => 'file-image',
            'svg' => 'file-image',
            'webp' => 'file-image',
            'mp4' => 'file-video',
            'avi' => 'file-video',
            'mov' => 'file-video',
            'wmv' => 'file-video',
            'mp3' => 'file-audio',
            'wav' => 'file-audio',
            'ogg' => 'file-audio',
            'flac' => 'file-audio',
            'zip' => 'file-archive',
            'rar' => 'file-archive',
            '7z' => 'file-archive',
            'tar' => 'file-archive',
            'gz' => 'file-archive',
            'html' => 'file-code',
            'htm' => 'file-code',
            'css' => 'file-code',
            'js' => 'file-code',
            'php' => 'file-code',
            'py' => 'file-code',
            'json' => 'file-code',
            'xml' => 'file-code',
        ],
    ],
];
